package com.yunkont.pigcontrol.bean;

import java.util.List;

/**
 * Created by bomei on 2017/9/23.
 */

public class HistoryBean {

    /**
     * data : {"number":0,"data":[{"id":2734,"anglex":2.4925,"angley":-1.0487,"anglez":110.23949999999999,"ax":-0.4306,"ay":0.2834,"az":0.3251,"hx":-195,"hy":-197,"hz":-377,"posture":4,"time":"2017-09-09 07:55:47","wx":3.1206,"wy":0.2038,"wz":4.5193,"pig_id":"AMWR"},{"id":3011,"anglex":4.0694,"angley":4.5267,"anglez":96.7597,"ax":-0.3099,"ay":-0.0022,"az":0.1544,"hx":-111,"hy":192,"hz":346,"posture":4,"time":"2017-09-09 05:53:08","wx":-2.5038,"wy":4.2198,"wz":1.4797,"pig_id":"AMWR"},{"id":4348,"anglex":4.9344,"angley":1.4266,"anglez":108.2106,"ax":0.1042,"ay":0.2542,"az":-0.0666,"hx":353,"hy":-482,"hz":75,"posture":3,"time":"2017-09-09 03:48:37","wx":3.267,"wy":2.2944,"wz":3.3369,"pig_id":"AMWR"},{"id":3491,"anglex":-4.9535,"angley":3.7559,"anglez":110.8002,"ax":0.2922,"ay":-0.0344,"az":0.4899,"hx":420,"hy":-357,"hz":-182,"posture":1,"time":"2017-09-09 03:27:03","wx":-0.6796,"wy":4.7052,"wz":1.7668,"pig_id":"AMWR"},{"id":3835,"anglex":-0.7169,"angley":-2.1047,"anglez":114.7542,"ax":-0.4188,"ay":0.1577,"az":-0.398,"hx":353,"hy":125,"hz":489,"posture":1,"time":"2017-09-09 01:12:28","wx":1.0536,"wy":2.9885,"wz":0.9747,"pig_id":"AMWR"},{"id":3064,"anglex":-0.0864,"angley":-1.0036,"anglez":114.81,"ax":-0.379,"ay":0.1745,"az":-0.2393,"hx":-267,"hy":-55,"hz":-351,"posture":1,"time":"2017-09-08 21:09:46","wx":-4.0388,"wy":2.1308,"wz":-1.955,"pig_id":"AMWR"},{"id":2783,"anglex":-0.9701,"angley":3.1286,"anglez":108.0669,"ax":-0.0672,"ay":-0.2251,"az":-0.1853,"hx":-68,"hy":-464,"hz":-104,"posture":4,"time":"2017-09-08 20:56:22","wx":4.4548,"wy":-4.289,"wz":-4.6083,"pig_id":"AMWR"},{"id":4381,"anglex":-2.7046,"angley":-4.8919,"anglez":107.9754,"ax":0.3306,"ay":-0.2494,"az":0.1073,"hx":12,"hy":19,"hz":136,"posture":1,"time":"2017-09-08 20:35:55","wx":4.8262,"wy":-2.752,"wz":3.0976,"pig_id":"AMWR"},{"id":3374,"anglex":-3.8543,"angley":1.7383,"anglez":105.1801,"ax":0.147,"ay":-0.3984,"az":0.1979,"hx":395,"hy":86,"hz":-396,"posture":3,"time":"2017-09-08 19:39:14","wx":2.0297,"wy":-2.3524,"wz":-3.45,"pig_id":"AMWR"},{"id":503,"anglex":2,"angley":1,"anglez":105,"ax":0,"ay":-2,"az":0,"hx":-468,"hy":-100,"hz":124,"posture":3,"time":"2017-09-08 18:18:07","wx":0,"wy":0,"wz":0,"pig_id":"AMWR"},{"id":1769,"anglex":-0.4684,"angley":3.2028,"anglez":102.1493,"ax":0.3832,"ay":-2.6332,"az":-3.1886,"hx":312,"hy":-32,"hz":-71,"posture":1,"time":"2017-09-08 17:49:29","wx":0,"wy":0,"wz":0,"pig_id":"AMWR"},{"id":2946,"anglex":-1.5416,"angley":-4.3618,"anglez":95.0338,"ax":-0.1984,"ay":0.1446,"az":0.3925,"hx":334,"hy":-426,"hz":-214,"posture":2,"time":"2017-09-08 14:24:09","wx":-4.6095,"wy":1.1968,"wz":4.71,"pig_id":"AMWR"},{"id":3818,"anglex":-0.5784,"angley":-1.1358,"anglez":96.1088,"ax":0.2389,"ay":0.0796,"az":-0.2234,"hx":445,"hy":-453,"hz":-89,"posture":4,"time":"2017-09-08 13:46:48","wx":-2.4301,"wy":1.0232,"wz":-4.9868,"pig_id":"AMWR"},{"id":4002,"anglex":-1.9522,"angley":-2.2316,"anglez":100.6054,"ax":-0.1937,"ay":-0.1811,"az":-0.4963,"hx":16,"hy":62,"hz":-116,"posture":1,"time":"2017-09-08 12:17:28","wx":-2.7884,"wy":1.6479,"wz":-0.0177,"pig_id":"AMWR"},{"id":2627,"anglex":0.2839,"angley":-0.2457,"anglez":110.2658,"ax":-0.4602,"ay":0.2867,"az":0.323,"hx":-400,"hy":-405,"hz":-300,"posture":2,"time":"2017-09-08 10:57:13","wx":3.1818,"wy":-3.9007,"wz":-2.0537,"pig_id":"AMWR"},{"id":2494,"anglex":-3.0423,"angley":2.2157,"anglez":100.0839,"ax":0.3812,"ay":-0.1318,"az":0.3421,"hx":383,"hy":183,"hz":-216,"posture":2,"time":"2017-09-08 08:38:19","wx":-4.4476,"wy":-0.2779,"wz":1.5658,"pig_id":"AMWR"}],"size":20,"totalPage":1,"totalElements":16}
     * count : [{"posture_4":"0.33","posture_3":0,"posture_2":0,"day":"2017-09-09","posture_1":0},{"posture_4":"0.33","posture_3":0,"posture_2":0,"day":"2017-09-09","posture_1":0},{"posture_4":0,"posture_3":"0.33","posture_2":0,"day":"2017-09-09","posture_1":0},{"posture_4":0,"posture_3":0,"posture_2":0,"day":"2017-09-09","posture_1":"0.33"},{"posture_4":0,"posture_3":0,"posture_2":0,"day":"2017-09-09","posture_1":"0.33"},{"posture_4":0,"posture_3":0,"posture_2":0,"day":"2017-09-08","posture_1":"0.33"},{"posture_4":"0.33","posture_3":0,"posture_2":0,"day":"2017-09-08","posture_1":0},{"posture_4":0,"posture_3":0,"posture_2":0,"day":"2017-09-08","posture_1":"0.33"},{"posture_4":0,"posture_3":"0.33","posture_2":0,"day":"2017-09-08","posture_1":0},{"posture_4":0,"posture_3":"0.33","posture_2":0,"day":"2017-09-08","posture_1":0},{"posture_4":0,"posture_3":0,"posture_2":0,"day":"2017-09-08","posture_1":"0.33"},{"posture_4":0,"posture_3":0,"posture_2":"0.33","day":"2017-09-08","posture_1":0},{"posture_4":"0.33","posture_3":0,"posture_2":0,"day":"2017-09-08","posture_1":0},{"posture_4":0,"posture_3":0,"posture_2":0,"day":"2017-09-08","posture_1":"0.33"},{"posture_4":0,"posture_3":0,"posture_2":"0.33","day":"2017-09-08","posture_1":0},{"posture_4":0,"posture_3":0,"posture_2":"0.33","day":"2017-09-08","posture_1":0}]
     */

    private DataBeanX data;
    private List<CountBean> count;

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public List<CountBean> getCount() {
        return count;
    }

    public void setCount(List<CountBean> count) {
        this.count = count;
    }

    public static class DataBeanX {
        /**
         * number : 0
         * data : [{"id":2734,"anglex":2.4925,"angley":-1.0487,"anglez":110.23949999999999,"ax":-0.4306,"ay":0.2834,"az":0.3251,"hx":-195,"hy":-197,"hz":-377,"posture":4,"time":"2017-09-09 07:55:47","wx":3.1206,"wy":0.2038,"wz":4.5193,"pig_id":"AMWR"},{"id":3011,"anglex":4.0694,"angley":4.5267,"anglez":96.7597,"ax":-0.3099,"ay":-0.0022,"az":0.1544,"hx":-111,"hy":192,"hz":346,"posture":4,"time":"2017-09-09 05:53:08","wx":-2.5038,"wy":4.2198,"wz":1.4797,"pig_id":"AMWR"},{"id":4348,"anglex":4.9344,"angley":1.4266,"anglez":108.2106,"ax":0.1042,"ay":0.2542,"az":-0.0666,"hx":353,"hy":-482,"hz":75,"posture":3,"time":"2017-09-09 03:48:37","wx":3.267,"wy":2.2944,"wz":3.3369,"pig_id":"AMWR"},{"id":3491,"anglex":-4.9535,"angley":3.7559,"anglez":110.8002,"ax":0.2922,"ay":-0.0344,"az":0.4899,"hx":420,"hy":-357,"hz":-182,"posture":1,"time":"2017-09-09 03:27:03","wx":-0.6796,"wy":4.7052,"wz":1.7668,"pig_id":"AMWR"},{"id":3835,"anglex":-0.7169,"angley":-2.1047,"anglez":114.7542,"ax":-0.4188,"ay":0.1577,"az":-0.398,"hx":353,"hy":125,"hz":489,"posture":1,"time":"2017-09-09 01:12:28","wx":1.0536,"wy":2.9885,"wz":0.9747,"pig_id":"AMWR"},{"id":3064,"anglex":-0.0864,"angley":-1.0036,"anglez":114.81,"ax":-0.379,"ay":0.1745,"az":-0.2393,"hx":-267,"hy":-55,"hz":-351,"posture":1,"time":"2017-09-08 21:09:46","wx":-4.0388,"wy":2.1308,"wz":-1.955,"pig_id":"AMWR"},{"id":2783,"anglex":-0.9701,"angley":3.1286,"anglez":108.0669,"ax":-0.0672,"ay":-0.2251,"az":-0.1853,"hx":-68,"hy":-464,"hz":-104,"posture":4,"time":"2017-09-08 20:56:22","wx":4.4548,"wy":-4.289,"wz":-4.6083,"pig_id":"AMWR"},{"id":4381,"anglex":-2.7046,"angley":-4.8919,"anglez":107.9754,"ax":0.3306,"ay":-0.2494,"az":0.1073,"hx":12,"hy":19,"hz":136,"posture":1,"time":"2017-09-08 20:35:55","wx":4.8262,"wy":-2.752,"wz":3.0976,"pig_id":"AMWR"},{"id":3374,"anglex":-3.8543,"angley":1.7383,"anglez":105.1801,"ax":0.147,"ay":-0.3984,"az":0.1979,"hx":395,"hy":86,"hz":-396,"posture":3,"time":"2017-09-08 19:39:14","wx":2.0297,"wy":-2.3524,"wz":-3.45,"pig_id":"AMWR"},{"id":503,"anglex":2,"angley":1,"anglez":105,"ax":0,"ay":-2,"az":0,"hx":-468,"hy":-100,"hz":124,"posture":3,"time":"2017-09-08 18:18:07","wx":0,"wy":0,"wz":0,"pig_id":"AMWR"},{"id":1769,"anglex":-0.4684,"angley":3.2028,"anglez":102.1493,"ax":0.3832,"ay":-2.6332,"az":-3.1886,"hx":312,"hy":-32,"hz":-71,"posture":1,"time":"2017-09-08 17:49:29","wx":0,"wy":0,"wz":0,"pig_id":"AMWR"},{"id":2946,"anglex":-1.5416,"angley":-4.3618,"anglez":95.0338,"ax":-0.1984,"ay":0.1446,"az":0.3925,"hx":334,"hy":-426,"hz":-214,"posture":2,"time":"2017-09-08 14:24:09","wx":-4.6095,"wy":1.1968,"wz":4.71,"pig_id":"AMWR"},{"id":3818,"anglex":-0.5784,"angley":-1.1358,"anglez":96.1088,"ax":0.2389,"ay":0.0796,"az":-0.2234,"hx":445,"hy":-453,"hz":-89,"posture":4,"time":"2017-09-08 13:46:48","wx":-2.4301,"wy":1.0232,"wz":-4.9868,"pig_id":"AMWR"},{"id":4002,"anglex":-1.9522,"angley":-2.2316,"anglez":100.6054,"ax":-0.1937,"ay":-0.1811,"az":-0.4963,"hx":16,"hy":62,"hz":-116,"posture":1,"time":"2017-09-08 12:17:28","wx":-2.7884,"wy":1.6479,"wz":-0.0177,"pig_id":"AMWR"},{"id":2627,"anglex":0.2839,"angley":-0.2457,"anglez":110.2658,"ax":-0.4602,"ay":0.2867,"az":0.323,"hx":-400,"hy":-405,"hz":-300,"posture":2,"time":"2017-09-08 10:57:13","wx":3.1818,"wy":-3.9007,"wz":-2.0537,"pig_id":"AMWR"},{"id":2494,"anglex":-3.0423,"angley":2.2157,"anglez":100.0839,"ax":0.3812,"ay":-0.1318,"az":0.3421,"hx":383,"hy":183,"hz":-216,"posture":2,"time":"2017-09-08 08:38:19","wx":-4.4476,"wy":-0.2779,"wz":1.5658,"pig_id":"AMWR"}]
         * size : 20
         * totalPage : 1
         * totalElements : 16
         */

        private int number;
        private int size;
        private int totalPage;
        private int totalElements;
        private List<DataBean> data;

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getTotalPage() {
            return totalPage;
        }

        public void setTotalPage(int totalPage) {
            this.totalPage = totalPage;
        }

        public int getTotalElements() {
            return totalElements;
        }

        public void setTotalElements(int totalElements) {
            this.totalElements = totalElements;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * id : 2734
             * anglex : 2.4925
             * angley : -1.0487
             * anglez : 110.23949999999999
             * ax : -0.4306
             * ay : 0.2834
             * az : 0.3251
             * hx : -195
             * hy : -197
             * hz : -377
             * posture : 4
             * time : 2017-09-09 07:55:47
             * wx : 3.1206
             * wy : 0.2038
             * wz : 4.5193
             * pig_id : AMWR
             */

            private int id;
            private double anglex;
            private double angley;
            private double anglez;
            private double ax;
            private double ay;
            private double az;
            private int hx;
            private int hy;
            private int hz;
            private int posture;
            private String time;
            private double wx;
            private double wy;
            private double wz;
            private String pig_id;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public double getAnglex() {
                return anglex;
            }

            public void setAnglex(double anglex) {
                this.anglex = anglex;
            }

            public double getAngley() {
                return angley;
            }

            public void setAngley(double angley) {
                this.angley = angley;
            }

            public double getAnglez() {
                return anglez;
            }

            public void setAnglez(double anglez) {
                this.anglez = anglez;
            }

            public double getAx() {
                return ax;
            }

            public void setAx(double ax) {
                this.ax = ax;
            }

            public double getAy() {
                return ay;
            }

            public void setAy(double ay) {
                this.ay = ay;
            }

            public double getAz() {
                return az;
            }

            public void setAz(double az) {
                this.az = az;
            }

            public int getHx() {
                return hx;
            }

            public void setHx(int hx) {
                this.hx = hx;
            }

            public int getHy() {
                return hy;
            }

            public void setHy(int hy) {
                this.hy = hy;
            }

            public int getHz() {
                return hz;
            }

            public void setHz(int hz) {
                this.hz = hz;
            }

            public int getPosture() {
                return posture;
            }

            public void setPosture(int posture) {
                this.posture = posture;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public double getWx() {
                return wx;
            }

            public void setWx(double wx) {
                this.wx = wx;
            }

            public double getWy() {
                return wy;
            }

            public void setWy(double wy) {
                this.wy = wy;
            }

            public double getWz() {
                return wz;
            }

            public void setWz(double wz) {
                this.wz = wz;
            }

            public String getPig_id() {
                return pig_id;
            }

            public void setPig_id(String pig_id) {
                this.pig_id = pig_id;
            }
        }
    }

    public static class CountBean {
        /**
         * posture_4 : 0.33
         * posture_3 : 0
         * posture_2 : 0
         * day : 2017-09-09
         * posture_1 : 0
         */

        private String posture_4;
        private String posture_3;
        private String posture_2;
        private String day;
        private String posture_1;

        public String getPosture_4() {
            return posture_4;
        }

        public void setPosture_4(String posture_4) {
            this.posture_4 = posture_4;
        }

        public String getPosture_3() {
            return posture_3;
        }

        public void setPosture_3(String posture_3) {
            this.posture_3 = posture_3;
        }

        public String getPosture_2() {
            return posture_2;
        }

        public void setPosture_2(String posture_2) {
            this.posture_2 = posture_2;
        }

        public String getDay() {
            return day;
        }

        public void setDay(String day) {
            this.day = day;
        }

        public String getPosture_1() {
            return posture_1;
        }

        public void setPosture_1(String posture_1) {
            this.posture_1 = posture_1;
        }
    }
}
